package org.tvolkov.mycompany

class Project {
	String name;
	String customer;
	Date deadline;
	
	Division division;
	
	static hasMany = [employees: Employee]

	static belongsTo = [division: Division]
	
	static constraints = {
		name blank: false, unique: true
		customer nullable: true
		deadline nullable: true
    }
	
	String toString(){
		return name;
	}
}
